Use the projection to flip around the content
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 2 Aug 2016 15:58:47 +0000 (16:58 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 18 Oct 2016 10:49:10 +0000 (11:49 +0100)
commit1ab1fd43910d256ac451ade32db8cf4ef2f7d10e
tree86884a8b915b1b9dd21fbdd8dc0f79a9c09a33ab
parent6c92846936065e3cae8b815979531a3acebea037
Use the projection to flip around the content

Since we use an FBO to render the contents of the render node tree, the
coordinate space is going to be flipped in GL. We can undo the flip by
using an appropriate projection matrix, instead of changing the sampling
coordinates in the shaders and updating all our coordinates at render
time.
gsk/gskglrenderer.c
gsk/resources/glsl/blend.fs.glsl
gsk/resources/glsl/blend.vs.glsl
gsk/resources/glsl/blit.vs.glsl
gtk/gtkwindow.c